home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / hity wydania / Ubuntu 9.10 PL / karmelkowy-koliberek-desktop-9.10-i386-PL.iso / casper / filesystem.squashfs / var / lib / dpkg / info / login.postinst < prev    next >
Text File  |  2009-07-31  |  579b  |  30 lines

  1. #!/bin/sh -e
  2.  
  3. if test "$1" = configure
  4. then
  5.     if test -f /etc/init.d/logoutd
  6.     then 
  7.         if test "$(md5sum /etc/init.d/logoutd)" = "9080f92783dd53f6f2108e698c06bd53  /etc/init.d/logoutd"
  8.         then    
  9.             echo "removing logoutd cruft"
  10.             rm /etc/init.d/logoutd
  11.             update-rc.d logoutd remove
  12.         fi
  13.     fi
  14. fi
  15. rm -f /etc/pam.d/login.pre-upgrade 2>/dev/null
  16.  
  17. if [ "$1" = "configure" ] && [ "$2" = "" ]
  18. then
  19.     # Install faillog during initial installs only
  20.     if [ ! -f /var/log/faillog ] ; then
  21.         touch /var/log/faillog
  22.         chown root:root /var/log/faillog
  23.         chmod 644 /var/log/faillog
  24.     fi
  25. fi
  26.  
  27.  
  28.  
  29. exit 0
  30.